<?php defined('BASEPATH') OR exit('No direct script access allowed');


class Admin_type_model extends Base_model
{
	protected $_table_name = 'admin_type';
    protected $_key_name = 'admin_type_id';
	
	public function __construct()
    {
        parent::__construct();
		
    }

    public function lists($limit = NULL,$map_arr = NULL)
    {
        $this->select("admin_type_id as TypeId,admin_type_root as TypeRoot,admin_type_info as TypeInfo,admin_type_name as TypeName, admin_type_ctime as Ctime ");
        $this->where('admin_type_dtime',0);
        if($this->set_limit($limit))
        {
            return $this->result_rows();
        }
        else
        {
            return $this->result();
        }
    }

    public function menus($map_arr = NULL)
    {
        $this->select("admin_type_id as value, admin_type_name as label ");
        $this->where('admin_type_dtime',0);
        return $this->all();
    }
	
}
/* End of file base_model.php */
/* Location: ./system/application/models/base_model.php */
